<div class="row" ms-controller="User">
    <!--标题-->
    <div class="col-md-12">

        <div class="row" style="padding-top: 10px">
            <button class="pull-right btn btn-info" data-toggle="modal" data-target="#myModal">批量添加</button>
            <!--<a class="navbar-brand add" href="#" id="batch-add"-->
            <!--data-toggle="modal" data-target="#myModal">批量添加</a>-->
            <!-- 模态框（Modal） -->
            <div class="modal fade dialog" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
                 aria-hidden="true">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                            <h3 class="modal-title" id="myModalLabel" style="text-align: center">批量添加用户</h3>
                        </div>
                        <div class="modal-body">
                            <input type="file">
                        </div>
                        <div class="modal-footer">
                            <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                            <button type="button" class="btn btn-primary">提交</button>
                        </div>
                    </div><!-- /.modal-content -->
                </div><!-- /.modal -->
            </div>

            <!-- 添加-->
            <div style="padding: 50px 100px 10px;" class="login col-md-6" ms-controller="User">
                <form class="bs-example bs-example-form" role="form">
                    <div class="input-group input-group-sm">
                        <span class="input-group-addon">姓名</span>
                        <input type="text" class="form-control" placeholder="用户名"
                               ms-duplex="@registname" id="name">
                    </div>
                    <!--<span id="error_usertxt">nihfods</span><br>-->
                    <br>
                    <div class="input-group input-group-sm">
                        <span class="input-group-addon">密码</span>
                        <input type="text" class="form-control" placeholder="默认为123456"
                               id="pass" disabled>
                    </div>
                    <!--<span id="error_passtxt">nihfods</span><br>-->
                    <br>

                    <div class="input-group input-group-sm">
                        <span class="input-group-addon">身份证号</span>
                        <input type="text" class="form-control" placeholder="身份证号" id="ID"
                               ms-duplex="@registId" :click="layerfn">
                    </div>
                    <br>
                    <div class="input-group input-group-sm">
                        <span class="input-group-addon">层次</span>
                        <select class="form-control" ms-duplex="@registlayer" :click="majorfn">
                            <option ms-for="(k,v) in @layer">{{v.Name}}</option>
                            <!--<option>专科</option>-->
                        </select>
                    </div>
                    <br>
                    <div class="input-group input-group-sm">
                        <span class="input-group-addon">专业</span>
                        <select class="form-control" ms-duplex="@registmajor">
                            <!--<option>k.</option>-->
                            <option ms-for="(k,v) in @major">{{v.ZName}}</option>
                        </select>
                    </div>
                    <br>
                    <div class="input-group input-group-sm">
                        <span class="input-group-addon">角色</span>
                        <select class="form-control" ms-duplex="@registrole">
                            <option>教师</option>
                            <option>学生</option>
                            <!--<option>管理员</option>-->
                        </select>
                    </div>
                    <br>
                </form>
                <button class="btn btn-primary btn-block" type="submit" id="login" :click="addUser">添加</button>
            </div>
        </div>
    </div>
</div>